package com.education.liteormtest;

import android.app.Application;

import com.litesuits.orm.LiteOrm;

public class App extends Application {
    private static App app;

    public static App getInstance() {
        return app;
    }
    static LiteOrm liteOrm;


    @Override
    public void onCreate() {
        super.onCreate();
        app = this;
        if (liteOrm == null) {
            //创建的数据库,数据库名称
            liteOrm = LiteOrm.newSingleInstance(this, "liteorm.db");
        }
    }
}
